package com.song.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.song.module.system.entity.BaseEntity;

/**
 * 用户评论对象 ap_comment
 *

 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "用户评论对象")
@Builder
@Accessors(chain = true)
@TableName("ap_comment")
public class ApComment extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    /**
     * 动态ID
     */
    @Excel(name = "动态ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "动态ID")
    private Long contentId;
    /**
     * 用户名称
     */
    @Excel(name = "用户名称")
    @ApiModelProperty(value = "用户名称")
    private String username;
    /**
     * 头像
     */
    @Excel(name = "头像")
    @ApiModelProperty(value = "头像")
    private String avatar;
    /**
     * 评论内容
     */
    @Excel(name = "评论内容")
    @ApiModelProperty(value = "评论内容")
    private String content;
}
